<!DOCTYPE html>
<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
        </div>
        <div class="gfoLogo"><a href="http://grails.org"><img id="gfoLogo" src="${resource(dir:'images/gf_res',file:'GFObanner.png')}"
                                                              alt="George Foreman"/></a></div>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a>
            </span>
            <span class="menuButton"><g:link class="create" controller="tournament" action="list">Tournaments</g:link></span>
            <span class="menuButton"><g:link class="create" controller="player" action="list">Players</g:link></span>
            <span class="menuButton"><g:link class="create" controller="match" action="list">Matches</g:link></span>
            <span class="menuButton"><g:link class="create" controller="fighter" action="list">Characters</g:link></span>
            <span class="menuButton"><g:link class="create" controller="stage" action="list">Stages</g:link></span>
        </div>
    <h2 id="findHeader">Find</h2>
    <g:form controller="match" action="specify">
        <div class="find">All matches where
        <g:select name="sPlayer1.id" from="${gfo.Player.list()}" optionKey="id"
                  noSelection="['':'Anyone']"/>
        played as
        <g:select name="sChar1.id" from="${gfo.Fighter.list()}" optionKey="id"
                  noSelection="['':'Anyone']"/>
        against
        <g:select name="sPlayer2.id" from="${gfo.Player.list()}" optionKey="id"
                  noSelection="['':'Anyone']"/>
        as
        <g:select name="sChar2.id" from="${gfo.Fighter.list()}" optionKey="id"
                  noSelection="['':'Anyone']"/>
        on
        <g:select name="sStage.id" from="${gfo.Stage.list()}" optionKey="id"
                  noSelection="['':'Anywhere']"/>
        in
        <g:select name="sTournament.id" from="${gfo.Tournament.list()}" optionKey="id"
                  noSelection="['':'Any tournament']"/>
        in
        <g:select name="sBracket.id" from="${gfo.Bracket.list()}" optionKey="id"
                  noSelection="['':'Any bracket']"/>.
        <span class="button">
            <g:submitButton name="specify" value="Search" action="specify"/>
        </span>
        </div>
    </g:form>
    <g:layoutBody />
    </body>
</html>